package com.example.car.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.car.CarplateEntity
import com.example.car.R

class ShengAdapter :BaseQuickAdapter<CarplateEntity,BaseViewHolder>(R.layout.item_sheng){
    override fun convert(holder: BaseViewHolder, item: CarplateEntity) {
        holder.setText(R.id.name,item.name)
        if (item.name==" "){
            holder.setVisible(R.id.name,false)
        }else{
            holder.setVisible(R.id.name,true)
        }
    }
}